package com.xqc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xqc.dao.TRoleMapper;
import com.xqc.mode.TRole;
import com.xqc.service.TRoleService;

/**
* @author 作者 Gavin.Dai/SNSSZ00036
* @dateTime 创建时间：2020年8月19日 下午2:03:08
* @version V1.0.0
* 类说明
*/
@Service
public class TRoleServiceImpl implements TRoleService{

	@Autowired
	private TRoleMapper tRoleMapper;
	
	@Override
	public boolean insert(TRole role) {
		return this.tRoleMapper.insert(role) > 0;
	}

	@Override
	public List<TRole> selectByRoleIds(List<Long> userIds) {
		return this.tRoleMapper.selectByRoleIds(userIds);
	}

	@Override
	public List<TRole> selectAll() {
		return this.tRoleMapper.selectAll();
	}

	@Override
	public boolean updateByModel(TRole tRole) {
		return this.tRoleMapper.updateByModel(tRole) > 0;
	}

}
